home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000343_news@columbia.edu _Fri Jun 2 16:38:41 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id QAA24330
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 2 Jun 2000 16:38:41 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA02346
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 2 Jun 2000 16:38:40 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id QAA14075
  10.     for kermit.misc@watsun.cc.columbia.edu; Fri, 2 Jun 2000 16:28:42 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: "Alan Rice" <alanrice@bigfoot.com>
  13. Subject: Login garbage
  14. Date: Fri, 2 Jun 2000 16:32:33 -0400
  15. Organization: Posted via Supernews, http://www.supernews.com
  16. Message-ID: <sjg664v25ri77@corp.supernews.com>
  17. To: kermit.misc@columbia.edu
  18.  
  19. Hello Guy's I'm having a simple problem that's been giving me fits.
  20. Some times when a client machine calls into our unix host I get false
  21. positive login's.
  22.  
  23. What is happening is that the modem seems to get trashed out. instead of
  24. answering with a clean <login: >. It will answer with trash like <RING's
  25. Passwd: >.
  26.  
  27. I thought I wrote the login script below right to handle this but it's not
  28. working.
  29. I think it's seeing the portion for the login input  it's looking for in the
  30. input buffer as < login: RING> and going forward to the password portion.
  31. Now RING is not the only garbage I've seen, There has been CONNECT , LC1,
  32. LC2, ect. I wanted it to look for <login: >.
  33.  
  34. What am I overlooking? In the Using C-Kermit 2nd Edition on Pg 436, the unix
  35. login script is incomplete. I thought it was just the mod's for the VMS
  36. login script. Did I miss an import concept or piece?
  37.  
  38. Alan R
  39.  
  40.  
  41.  
  42. Kermit Script
  43.  
  44. define UNIXLOGIN {
  45. set input timeout proceed
  46. set case on
  47. in 5 {login: }
  48. xif fail {
  49.       for \%i 1 3 1 {
  50.          out \B\13
  51.          in 5 {login: }
  52.          if success break
  53.       }
  54.       if > \%i 3 end 1 No Login Prompt
  55.    out \m(clientid)\13
  56.    in 5 {\m(clientid)'s Password: }
  57.    if fail end 1 No Password Prompt
  58. }
  59. pause 1
  60. out \m(passwd)\13
  61.  
  62. end 0 Login Successful.
  63. }
  64. define \%j 0  ;  call counter
  65. set input echo off
  66. set dial connect auto
  67. call hayes \m(modemdevice) 19200 \m(bmsediphone) 10
  68.  if failure end 1 Unsuccesful dialing the number: \m(bmsediphone)
  69. assign \%j \feval(\%j+1)   ; increment call count
  70.  
  71. unixlogin